package leetcode.code0594;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution594 implements IDebug {

	public abstract int findLHS(int[] nums);

	@Override
	public void debug1() {
		int r = this.findLHS(HelpDebug.str2array3("[1,3,2,2,5,2,3,7]"));
		int e = 5;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.findLHS(HelpDebug.str2array3("[1,2,3,4]"));
		int e = 2;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int r = this.findLHS(HelpDebug.str2array3("[1,1,1,1]"));
		int e = 0;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// [1,2,2,1]
		int r = this.findLHS(HelpDebug.str2array3("[1,2,2,1]"));
		int e = 4;
		HelpDebug.compare(e, r);
	}
	public void debug5() {
		int r = this.findLHS(HelpDebug.str2array3("[1,3,5,7,9,11,13,15,17]"));
		int e = 0;
		HelpDebug.compare(e, r);
	}

}
